import { forEach } from "mathjs";
import { ref ,computed } from "vue";


/**
 * 权限按钮
 */
export const authButton = (params:{[x:string]:{}}) => {
 
  const authArrUser=  computed(function(){
    var newpatherobj={};
    if(params){
      console.log(params)


      for (var keyp in params) {

        var newobj={}
        var paramsone_val= params[keyp];

        for (var key in paramsone_val) {
         
          if(key=="show"){
            
            console.log(key + ": " + paramsone_val[key]);
          }


        }


        newpatherobj[keyp]="newobj";
      }
     




      
    }


    return newpatherobj;

  })

  return { authArrUser};
};

